package zuoye2;

import java.util.ArrayList;
import java.util.Random;

public class hw7_cun_oushu {
	public static void main(String[] args) {
		oushu();
	}

	private static void oushu() {
		
		ArrayList<Integer> arr=new ArrayList<>();
		ArrayList<Integer> oushu=new ArrayList<>();
		for(int i=0;i<20;i++){
			
			Random r=new Random();
			int count=r.nextInt(100);
			arr.add(count);
			if(count%2==0){
				oushu.add(count);
			}
		}
		System.out.println(arr);
		System.out.println(oushu);
	}
}
